package com.beidu.lottery.call.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.beidu.lottery.call.entity.ActivityBaseInfo;
import com.beidu.lottery.call.entity.query.ActivityListQuery;
import com.beidu.lottery.call.entity.vo.ActivityInfoDetailVO;
import com.beidu.lottery.call.entity.vo.ActivityInfoListVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * <p>
 * 活动基础信息表 Mapper 接口
 * </p>
 *
 */
public interface ActivityBaseInfoMapper extends BaseMapper<ActivityBaseInfo> {

    /**
     * 查询活动列表数据
     * @param query     数据查询条件对象
     * @return
     */
    List<ActivityInfoListVO> queryActivityList(ActivityListQuery query);


    /**
     * 查询活动详情
     * @param id    活动id
     * @return
     */
    ActivityInfoDetailVO queryDetail(@Param("id") Integer id);

    /**
     * 更新活动状态
     *
     * @param activityId      活动id
     * @param groundingStatus 活动状态
     */
    void updateActivityStatus(@Param("activityId") Integer activityId, @Param("groundingStatus") Integer groundingStatus);

}
